<page-header [action]="phActionTpl">
  <ng-template #phActionTpl>
    <button (click)="query()" nz-button>查询</button>
    <button (click)="add()" nz-button nzType="primary">新建</button>
    <button (click)="export()" nz-button>导出</button>
  </ng-template>
</page-header>
<nz-card>


  <!-- <lb-pop #pop  [schema]="newSchema" [formData]="formData" [title]="'人员新增'" [(isVisible)]="isVisible" [saveFu]="save" saveSname="FR_quseradd" ></lb-pop> -->
  <nz-modal [(nzVisible)]="isVisible" nzTitle="人员新增" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()" nzWidth="600">
    <sf #pop [schema]="newSchema" [formData]="formData" [button]="null" nzOkText="确定">
    </sf>
  </nz-modal>


  <sf #sf mode="search" [schema]="searchSchema" (formReset)="st.reset()" [button]="null"></sf>

  <nz-modal [(nzVisible)]="czyupVisible" nzTitle="操作员修改" (nzOnCancel)="czyuphandleCancel()" (nzOnOk)="czyuphandleOk()"
    nzWidth="600">
    <sf #czyupPop [schema]="czyupSchema" [formData]="formData" [button]="null" nzOkText="确定">
    </sf>
  </nz-modal>

  <!--
    <lb-grid #st  [columns]="columns" [sname]="params.sname" [queryparas]="params.form" ></lb-grid>
-->

  <st #st [data]="dataset" [columns]="columns" [page]="stpage" [pi]="stchange.pi" [ps]="stchange.ps"
    [total]="stchange.total" (change)="pageChange($event)">
    <ng-template #selectkuang st-row="custom" let-item let-index="index" let-column="column">
      <button nz-button (click)="changeState(index)" *ngIf="st._data[index].STATUS=='1'"
        style="border-radius: 8px;background:green;color:honeydew">
        正常
      </button>
      <button nz-button (click)="changeState(index)" *ngIf="st._data[index].STATUS=='0'"
        style="border-radius: 8px;background:red;color:honeydew">
        停用
      </button>
    </ng-template>
  </st>

</nz-card>
